#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

extern void initVec(vector<int>& v, int N);
extern void printVec(vector<int>& v);

class myTransfer {
public:
	int operator()(int var) {
		return var + 100;
	}
};

void myPrint(int var) {
	cout << var << " ";
}

void transferFunc() {
	vector<int> v1;
	initVec(v1, 10);

	vector<int> v2;
	v2.resize(v1.size());
	printVec(v1);
	transform(v1.begin(), v1.end(), v2.begin(), myTransfer());
	for_each(v2.begin(), v2.end(), myPrint);
}